#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

//int main()
//{
//	int arr[3] = { 0 };
//	printf("%p %d", &arr[2] - &arr[1], &arr[2] - &arr[1]);
//}


void string_left_rotate(char* str, int k)
{
	int i = 0;
	int j = 0;
	int len = strlen(str);
	for (i = 0; i < k; i++)
	{	
		char tmp = *str;
		for (j = 0; j < len; j++)
		{
			str[j] = str[j + 1];
		}
		str[len-1] = tmp;
	}
}

int main()
{
	char arr[10] = "ABCDEFG";
	int k = 2;
	string_left_rotate(arr,k);
	printf("%s", arr);
}